<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

	<head>
		<title>[%$ESPCMS_SOFT_TITLE%]</title>
		<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
		<link href="[%$ESPCMS_ADMIN_TEMPLATES_URL%]css/espcms_style_font_icon.css" rel="stylesheet" type="text/css" />
		<link href="[%$ESPCMS_ADMIN_TEMPLATES_URL%]css/espcms_style_public.css" rel="stylesheet" type="text/css" />
		<link href="[%$ESPCMS_ADMIN_TEMPLATES_URL%]css/espcms_all.css" rel="stylesheet" type="text/css" />
		<link href="[%$ESPCMS_ADMIN_TEMPLATES_URL%]css/espcms_style_font_icon.css" rel="stylesheet" type="text/css" />
		<link href="[%$ESPCMS_ADMIN_TEMPLATES_URL%]css/espcms_framework.css" rel="stylesheet" type="text/css" />
		<link href="[%$ESPCMS_ADMIN_TEMPLATES_URL%]css/espcms_select.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/jquery.min.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/jquery-ui.min.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/jquery.cookie.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/md5.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/json.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/bootstrap.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/lngpack_cn.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_form.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_formvalidation.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_dialog.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_function.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_page.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_select.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_checkbox.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_select_checkbox.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_batch.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/iframeResizer.contentWindow.min.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_tab.js"></script>
		<script type="text/javascript">
			$(document).ready(function () {
				banpageKey();

				$('#espcms_select_botton').select_checkbox();

				espcms_get_cookie_page('[%$iframes_name%]_now_page', 'now_page');
				espcms_get_cookie_page('[%$iframes_name%]_per_page_num', 'per_page_num');
				loading('ajax_list');
				add_espcms_window_tab();

				$('.refresh').click(function () {
					loading('ajax_list');
				});

				$('.espcms_screen').espcms_screen({formname: 'ajax_list'});
				[%if @this->power('setLanguageSite')%]

				$('.batset').batchset({formname: 'ajax_list', url: '[%$link.set%]'});
				[%/if%]
				[% if @this->power('delLanguageSite')%]

				$('.batdel').batchdel({formname: 'ajax_list', url: '[%$link.batdel%]'});
				[%/if%]
			});

			function pageselectCallback(listurl, loadname, page_botton, per_page_num, sum_db, sum_page, now_page) {
				espcms_set_cookie_page(now_page, '[%$iframes_name%]_now_page');
				espcms_set_cookie_page(per_page_num, '[%$iframes_name%]_per_page_num');

				$("#now_page").val(now_page);

				var sort_key = $('#sort_key').val();
				var sort_rank = $('#sort_rank').val();

				var limit = per_page_num * now_page;
				$.ajax({
					type: "get", url: listurl, data: {'limit': limit, 'per_page_num': per_page_num, 'sort_key': sort_key, 'sort_rank': sort_rank}, global: false,
					beforeSend: function () {
						$('#loadingtable').show();
					},
					success: function (data) {
						$('#loadingtable').hide();
						$(loadname).empty().append(data);

						$('input[type=checkbox],input[type=radio]').espcms_checkbox();
						$('.sort_field').fieldsort();
						add_espcms_window_tab();


						$('.espcms_create_link').unbind('click').bind('click', function () {
							var lan_id = $(this).attr("data-id");
							if (!lan_id || !espcms_ismatch(lan_id)) {
								return false;
							}
							$.ajax({
								type: "post",
								url: '[%$link.creat%]',
								global: false,
								dataType: 'json',
								data: {'lan_id': lan_id},
								beforeSend: function () {
									parent.espcms_are_loading();
								},
								success: function (data) {
									if (data.code == 'true') {
										parent.$.espcms_sticky(data.message, {'autoclose': 3000});
									} else {
										parent.$.espcms_sticky('[%pack:setting_pack-espcms_language_site_creat_message_no%]', {'autoclose': 3000});
									}
									parent.$("#espcms_are_loading").dialog("close");
								}
							});
						});
					}
				});
			}
		</script>
	</head>

	<body class="espcms_style_all">
		<div class="main">
			<div class="espcms_center_content_list vt">

				<div class="panel_list_button kill_copy">
					[%if @this->power('addLanguageSite')%]
					<button class="btn btn-addblue btn-sm espcms_tab_link" tab_name="[%pack:setting_pack-espcms_language_site_button_add%]" tab_url="[%$link.add%]" tab_close="false" tab_icon="glyphicon glyphicon-edit"><span class="glyphicon glyphicon-edit" aria-hidden="true"></span>[%pack:setting_pack-espcms_language_site_button_add%]</button>
					[%/if%]
					<div class="btn-group" role="group" id="espcms_select_botton"></div>
					<div class="btn-group espcms_menu_screen">
						<button type="button" class="btn btn-treegree btn-sm dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true"><span class="espcms_icon_fa espcms_icon_fa-filter" aria-hidden="true"></span> [%pack:botton_pack-espcms_botton_screen%] <span class="caret"></span></button>
						<ul class="dropdown-menu" id="bat_botton">
							<li class="dropdown-submenu">
								<a href="#"><span class="espcms_icon_fa" aria-hidden="true"></span>[%pack:setting_pack-espcms_language_site_ispack%]</a>
								<ul class="dropdown-menu">
									<li class="espcms_screen hover" data-field="ispack" data-value=""><a><span class="espcms_icon_fa" aria-hidden="true"></span>[%pack:public_pack-espcms_lable_select_all%]</a></li>
									<li class="espcms_screen" data-field="ispack" data-value="1"><a><span class="espcms_icon_fa" aria-hidden="true"></span>[%pack:public_pack-espcms_lable_open%]</a></li>
									<li class="espcms_screen" data-field="ispack" data-value="0"><a><span class="espcms_icon_fa" aria-hidden="true"></span>[%pack:public_pack-espcms_lable_disable%]</a></li>
								</ul>
							</li>
							<li class="dropdown-submenu">
								<a href="#"><span class="espcms_icon_fa" aria-hidden="true"></span>[%pack:setting_pack-espcms_language_site_islink%]</a>
								<ul class="dropdown-menu">
									<li class="espcms_screen hover" data-field="islink" data-value=""><a><span class="espcms_icon_fa" aria-hidden="true"></span>[%pack:public_pack-espcms_lable_select_all%]</a></li>
									<li class="espcms_screen" data-field="islink" data-value="1"><a><span class="espcms_icon_fa" aria-hidden="true"></span>[%pack:public_pack-espcms_lable_open%]</a></li>
									<li class="espcms_screen" data-field="islink" data-value="0"><a><span class="espcms_icon_fa" aria-hidden="true"></span>[%pack:public_pack-espcms_lable_disable%]</a></li>
								</ul>
							</li>
							<li class="dropdown-submenu">
								<a href="#"><span class="espcms_icon_fa" aria-hidden="true"></span>[%pack:setting_pack-espcms_language_site_isopen%]</a>
								<ul class="dropdown-menu">
									<li class="espcms_screen hover" data-field="isopen" data-value=""><a><span class="espcms_icon_fa" aria-hidden="true"></span>[%pack:public_pack-espcms_lable_select_all%]</a></li>
									<li class="espcms_screen" data-field="isopen" data-value="1"><a><span class="espcms_icon_fa" aria-hidden="true"></span>[%pack:public_pack-espcms_lable_open_1%]</a></li>
									<li class="espcms_screen" data-field="isopen" data-value="0"><a><span class="espcms_icon_fa" aria-hidden="true"></span>[%pack:public_pack-espcms_lable_close%]</a></li>
								</ul>
							</li>
							<li class="dropdown-submenu">
								<a href="#"><span class="espcms_icon_fa" aria-hidden="true"></span>[%pack:setting_pack-espcms_language_site_iswap%]</a>
								<ul class="dropdown-menu">
									<li class="espcms_screen hover" data-field="iswap" data-value=""><a><span class="espcms_icon_fa" aria-hidden="true"></span>[%pack:public_pack-espcms_lable_select_all%]</a></li>
									<li class="espcms_screen" data-field="iswap" data-value="1"><a><span class="espcms_icon_fa" aria-hidden="true"></span>[%pack:public_pack-espcms_lable_open_1%]</a></li>
									<li class="espcms_screen" data-field="iswap" data-value="0"><a><span class="espcms_icon_fa" aria-hidden="true"></span>[%pack:public_pack-espcms_lable_close%]</a></li>
								</ul>
							</li>
						</ul>
					</div>
					[%if @this->power('delLanguageSite')%]
					<button class="btn btn-orange btn-sm batdel"><span class="espcms_icon_fa espcms_icon_fa-trash-o" aria-hidden="true"></span>[%pack:botton_pack-espcms_botton_del%]</button>
					[%/if%]
					<button class="btn btn-lightgray btn-sm refresh"><span class="espcms_icon_fa espcms_icon_fa-refresh" aria-hidden="true"></span>[%pack:botton_pack-espcms_botton_refresh%]</button>
					[%if @this->power('setLanguageSite')%]
					<div class="btn-group espcms_menu_screen">
						<button type="button" class="btn btn-treegree btn-sm dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><span class="espcms_icon_fa espcms_icon_fa-cog" aria-hidden="true"></span> [%pack:botton_pack-espcms_botton_set%] <span class="caret"></span></button>
						<ul class="dropdown-menu" id="bat_botton">
							<li class="dropdown-submenu">
								<a href="#"><span class="espcms_icon_fa" aria-hidden="true"></span>[%pack:setting_pack-espcms_language_site_isopen%]</a>
								<ul class="dropdown-menu">
									<li class="batset" set-value="1" set-field="isopen"><a><span class="espcms_icon_fa" aria-hidden="true"></span>[%pack:public_pack-espcms_lable_open_1%]</a></li>
									<li class="batset" set-value="0" set-field="isopen"><a><span class="espcms_icon_fa" aria-hidden="true"></span>[%pack:public_pack-espcms_lable_close%]</a></li>
								</ul>
							</li>
							<li class="dropdown-submenu">
								<a href="#"><span class="espcms_icon_fa" aria-hidden="true"></span>[%pack:setting_pack-espcms_language_site_iswap%]</a>
								<ul class="dropdown-menu">
									<li class="batset" set-value="1" set-field="iswap"><a><span class="espcms_icon_fa" aria-hidden="true"></span>[%pack:public_pack-espcms_lable_open_1%]</a></li>
									<li class="batset" set-value="0" set-field="iswap"><a><span class="espcms_icon_fa" aria-hidden="true"></span>[%pack:public_pack-espcms_lable_close%]</a></li>
								</ul>
							</li>
						</ul>
					</div>
					[%/if%]
				</div>
				<div class="panel">
					<form name="ajax_list" method="post" id="ajax_list">
						<input type="hidden" name="listurl" id="listurl" value="[%$link.list%]"/>
						<input type="hidden" name="loadname" id="loadname" value="#loadingstr"/>
						<input type="hidden" name="page_botton" id="page_botton" value="#page_botton_list"/>

						<input type="hidden" name="per_page_num" id="per_page_num" value="[%$page_db.per_page_num%]"/>

						<input type="hidden" name="sum_db" id="sum_db" value="[%$page_db.sum_db%]"/>

						<input type="hidden" name="sum_page" id="sum_page" value="[%$page_db.sum_page%]"/>

						<input type="hidden" name="now_page" id="now_page" value="[%$page_db.now_page%]"/>
						<input type="hidden" name="sort_key" id="sort_key" value="lan_id"/>

						<input type="hidden" name="sort_rank" id="sort_rank" value="DESC"/>
						<div id="loadingtable" class="displaynone"><div class="loading_pic"></div></div>
						<div class="panel-body p0" id="loadingstr"></div>

						<div class="panel-menu kill_copy panel_page_button">
							<div class="right">
								<div class="btn-toolbar" role="toolbar" id="page_botton_list"></div>
							</div>
						</div>
					</form>
				</div>

			</div>
		</div>
	</body>
</html>
